#!/usr/bin/perl
print "Content-type: text/html;charset=utf-8\n\n";

$running = `ps -A | grep db2lib.daily`;
die("Try again later.") if $running;

`/home/dweindl/bin/db2lib -t -o  /home/metabolomics/software/MetaboliteDetector/compound_libraries_autogen >/dev/null 2>&1`;

die("Error generating libraries.\n") if($?);

print "Libraries generated.\n";
